package com.testpro.DesignPattern.BuilderPattern;

public class MACComputerBuilder implements ComputerBuilder{

    private  Computer computer = new Computer();
    @Override
    public void build_CPU() {
        System.out.println("先来一个80核心 晓龙CPU");
        computer.setCPU("先来一个80核心 晓龙CPU");
    }

    @Override
    public void build_memory() {
        System.out.println("先来一个80G 金士顿内存");
        computer.setMemory("先来一个80G 金士顿内存");
    }

    @Override
    public void build_DISK() {
        System.out.println("先来一个8000G 三星固态硬盘");
        computer.setDisk("先来一个8000G 三星固态硬盘");
    }

    @Override
    public Computer getComputer() {
        return this.computer;
    }
}
